/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Programas_En_Clase;

/**
 *
 * @author gurrola
 */
public class RaizCuadrada {

     public static void main(String [] args){

         double a=1,b=3,c=1;

         System.out.println("La raiz en positivo es: " + (-b+Math.sqrt(Math.pow(b, 2)-(4*a*c)))/(2*a));
         System.out.println("La raiz en negativo es: " + (-b-Math.sqrt(Math.pow(b, 2)-(4*a*c)))/(2*a));

     }

}
